home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / root / .bash_profile < prev    next >
Text File  |  2005-11-03  |  480b  |  30 lines

  1. #!/bin/bash
  2.  
  3. alias ls='ls --color'
  4. alias aemerge='ACCEPT_KEYWORDS="~x86" emerge'
  5. alias cp='cp -i'
  6. alias mv='mv -i'
  7.  
  8.  
  9. if [ $(tty) == /dev/tty6 ]; then
  10. dostartx=1
  11.  
  12. CMDLINE=`cat /proc/cmdline`
  13. for x in ${CMDLINE}
  14. do
  15.         case "${x}" in
  16.                 nox)
  17.                        dostartx=0
  18.                    ;;
  19.                    esac
  20.         done
  21.     if [ ${dostartx} == 1 ]; then
  22.         echo "Starting a single user X Session"
  23.         startx
  24.     fi
  25. fi
  26.  
  27. if [ $(tty) == /dev/tty1 ]; then
  28.     cat /root/motd
  29. fi
  30.